package com.miyuan.wm.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @ClassName PermissionEntity
 * @Description 权限信息表
 */
@TableName("my_permission")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class PermissionEntity implements Serializable {

    @TableId(type = IdType.AUTO, value = "id")
    private int id; // 数据库Id

    @TableField(value = "per_name")
    private String perName; // 名称

    @TableField(value = "per_desc")
    private String perDesc; // 描述

    @TableField(value = "action")
    private String action; // 请求地址

}
